//
//  CycleBaseView.m
//  CycleBaseControl
//
//  Created by ddy on 2018/8/14.
//  Copyright © 2018年 cycle. All rights reserved.
//

#import "CycleBaseView.h"

@implementation CycleBaseView


-(void)awakeFromNib{
    [super awakeFromNib];
    [self cycle_view_setupSubViews];
    [self cycle_view_bindData];
}

-(instancetype)init {
    if (self = [super init]) {
        [self cycle_view_setupSubViews];
        [self cycle_view_bindData];
    }
    return self;
}

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self cycle_view_setupSubViews];
        [self cycle_view_bindData];
    }
    return self;
}


- (instancetype)initWithViewModel:(id<CycleBaseViewModelProtocol>)viewModel {
    if (self = [super init]) {
        [self cycle_view_setupSubViews];
        [self cycle_view_bindData];
    }
    return self;
}

///设置子控件
- (void)cycle_view_setupSubViews{
    
}
///绑定数据
- (void)cycle_view_bindData {
    
}

@end
